# coding=utf-8
import time


class GetTime(object):

    def get_system_time(self):
        # print(time.localtime())
        new_time = time.strftime('%Y年-%m月-%d日 %H:%M:%S', time.localtime())  # 格式化时间，按照 2022-04-15 13:46:32的格式打印出来
        print(new_time)

gettime = GetTime()
gettime.get_system_time()


